﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AgentSite.Master" AutoEventWireup="true" CodeBehind="EditCustomer.aspx.cs" Inherits="Agents.Agent.EditCustomer" %>
<asp:Content ID="Header" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        לקוח קיים
    </h1>           
    <hr />  
    <asp:ScriptManager ID="ScriptManager1" runat="server" />  
    <asp:Timer ID="redirectionTimer" runat="server" Interval="2000" Enabled="false" 
        ontick="redirectionTimer_Tick" />         
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="title">
                <asp:Label ID="Label1" Text="שם הלקוח:" runat="server" />
            </td>
            <td class="textbox">
                <asp:TextBox ID="nameTxtbox" runat="server"/>
            </td>
            <td class="title">
                <asp:Label ID="Label10" Text="סטטוס:" runat="server" />
            </td>
            <td class="textbox">
                <asp:RadioButtonList ID="RadioButtonList1" RepeatDirection="Horizontal" CssClass="textbox" 
                    runat="server" >
                    <asp:ListItem ID= "active" Text="פעיל" />
                    <asp:ListItem ID= "nonActive" Text="לא פעיל" />                                 
                </asp:RadioButtonList>                      
            </td> 
        </tr>
            <tr>
               <td colspan="4">
               <asp:Panel ID="panelAddress" runat="server" GroupingText="כתובת">
               <table>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label3" Text="רחוב:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="txtStreet" runat="server"  />
                    </td>
                    <td class="title">
                        <asp:Label ID="Label11" Text="מס' בית:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="txtStreetNum" runat="server" MaxLength="5" Width="40"/>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label12" Text="עיר:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="txtCity" runat="server"  />
                    </td>
                    </td>
                    <td class="title">
                        <asp:Label ID="Label2" Text="אזור:" runat="server" />
                    </td>
                    <td class="combobox">
                        <asp:DropDownList ID="cmbArea" runat="server" />
                    </td>
                </tr>
               </table>
               </asp:Panel>
            </td>
        </tr>
            <tr>
            <td colspan="4">
               <asp:Panel ID="panel1" runat="server" GroupingText="פרטי התקשרות">
               <table>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label13" Text="טלפון:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="phoneTxtbox" runat="server"  />
                    </td>
                    <td class="title">
                        <asp:Label ID="Label14" Text="איש קשר:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="contactMenTxtbox" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label7" Text="מייל:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="emailTxtbox" runat="server"  />
                    </td>
                </tr>
               </table>
               </asp:Panel>
            </td>
            
        </tr>
            <tr>
            <td colspan="4">
               <asp:Panel ID="panel2" runat="server" GroupingText="פרטי מחירון">
               <table>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label8" Text="ח.פ.:" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="hpTxtbox" runat="server" />
                    </td>
                    <td class="title">
                        <asp:CheckBox ID="priorityChkBox" Text="עדיפות:" runat="server"  />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="priorityTxtbox" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <asp:Label ID="Label9" Text="סוג מחירון:" runat="server" />
                    </td>
                    <td class="combobox">
                        <asp:DropDownList ID="cmbPricesType" runat="server" 
                        DataTextField="Number" DataValueField="Id" />
                    </td>
                    <td class="title">
                        <asp:Label ID="Label4" Text="רמת דירוג אשראי:" Font-Size="Small" runat="server" />
                    </td>
                    <td class="textbox">
                        <asp:TextBox ID="creditTxtbox" runat="server" />
                    </td>
                </tr>
               </table>
               </asp:Panel>
            </td>
        </tr>
    </table>   
    <br />           
    <hr />
   
    <div class="alignCenter">               
        <asp:Button ID="okBtn" Text="עדכן" runat="server" onclick="okBtn_Click" CssClass="button"/>  
        <asp:Button ID="deleteBtn" Text="מחק" runat="server" CssClass="button"/>                    
        <asp:Button ID="backBtn" Text="חזור" runat="server" onclick="backBtn_Click1" CssClass="button"/>
        <asp:Label ID="empty" runat="server" />
        <asp:Label ID="nameExists" runat="server" />  
    </div>
</asp:Content>
